package com.wwz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wwz.mapper.UserMapper;
import com.wwz.pojo.User;
import com.wwz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryAllUser() {
        return userMapper.queryAllUser();
    }

    @Override
    public User findById(Long id) {
        return userMapper.findById(id);
    }
}
